/* 初始化样式
------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	outline: none !important;
}

:root {
	--next-color-white: #ffffff;
	--next-bg-main-color: #f8f8f8;
	--next-bg-color: #f5f5ff;
	--next-border-color-light: #f1f2f3;
	--next-color-primary-lighter: #ecf5ff;
	--next-color-success-lighter: #f0f9eb;
	--next-color-warning-lighter: #fdf6ec;
	--next-color-danger-lighter: #fef0f0;
	--next-color-dark-hover: #0000001a;
	--next-color-menu-hover: rgba(0, 0, 0, 0.2);
	--next-color-user-hover: rgba(0, 0, 0, 0.04);
	--next-color-seting-main: #e9eef3;
	--next-color-seting-aside: #d3dce6;
	--next-color-seting-header: #b3c0d1;
}

html,
body,
#app {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	background-color: var(--next-bg-main-color);
	font-size: 14px;
	overflow: hidden;
	position: relative;
}

body{
	//overflow: scroll;
	//min-width: 1200px; /* 设置最小宽度 */
	//min-height: 800px; /* 设置最小高度 */
	//overflow-x: auto; /* 允许水平滚动 */
	//overflow-y: scroll; /* 允许垂直滚动 */

}
html{
	//overflow-x: auto;
}

/* 主布局样式
------------------------------- */
.layout-container {
	width: 100%;
	height: 100%;
	.layout-pd {
		padding: 15px 15px 5px 15px !important;
	}
	.layout-flex {
		display: flex;
		flex-direction: column;
		flex: 1;
	}
	.layout-aside {
		background: var(--next-bg-menuBar);
		box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
		height: inherit;
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		overflow-x: hidden !important;
		.el-scrollbar__view {
			overflow: hidden;
		}
	}
	.layout-header {
		padding: 0 !important;
		height: auto !important;
	}
	.layout-main {
		padding: 0 !important;
		overflow: hidden;
		width: 100%;
		background-color: var(--next-bg-main-color);
		display: flex;
		flex-direction: column;
		// 内层 el-scrollbar样式，用于界面高度自适应（main.vue）
		.layout-main-scroll {
			@extend .layout-flex;
			.layout-parent {
				@extend .layout-flex;
				position: relative;
			}
		}
	}
	// 用于界面高度自适应
	.layout-padding {
		@extend .layout-pd;
		//position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		overflow: hidden;
		@extend .layout-flex;
		&-auto {
			height: inherit;
			@extend .layout-flex;
			padding: 10px;
		}
		&-view {
			//background: var(--el-color-white);
			background: transparent;
			width: 100%;
			height: 100%;
			border-radius: 4px;
			//border: 1px solid var(--el-border-color-light, #ebeef5);

			overflow: hidden;


			//全局通用的表格数据展示样式
			.el-row{

				margin-bottom: 18px;
			}
			.el-row.query_el_row-wrapper{
				padding-top: 18px;
				padding-left: 20px;
				padding-right: 20px;

				background: white;
				.el-form-item{
					display: inline-flex;
					flex-direction: column;
					justify-content: flex-end;
					align-items: start;
					.el-form-item__label{
						font-size: 16px;
						color: black;//#323133;
						margin-bottom: 5px;
					}
					.el-form-item__content{
						.el-input__wrapper{
							border-radius: 0;
							min-height: 36px;
							font-size: 15px;
						}
						.el-select__wrapper{
							border-radius: 0;
							font-size: 15px;
							min-height: 36px;
						}
						.el_form_query_item_wrapper{
							display: flex;
							flex-direction: column;
							align-items: flex-start;
							justify-content: flex-end;
							margin-left: 0px;
						}

					}

				}
				.query_button_wrap{
					display: flex;
					justify-content: flex-end;
					align-items:end;
					padding-bottom: 18px;
					height: 100%;
					.el-button{
						min-height: 38px;
						min-width: 110px;
						border-radius: 1px;
						font-size: 16px;
					}
				}
			}
			.el-row.add_el_row_wrapper{
				//height: ;
				//background: cyan;
				.add_el_button_el_col{
					.el-button{
						min-height: 38px;
						min-width: 110px;
						border-radius: 1px;
						font-size: 16px;
					}
				}
				.right_tool_el_col{
					display: flex;
					align-items: center;
					justify-content: flex-end;

					.el-row{
						margin-bottom: 0;
					}

					.data_show_switch_wrapper{
						border: 1px #dcdfe6 solid;
						cursor: pointer;
						background: white;
						padding: 0 19px;
						height: 100%;
						display: flex;
						align-items: center;
						.iconfont{
							color: var(--el-disabled-text-color);; //var(--el-text-color);
						}
						.iconfont.active{
							color: var(--el-color-primary);;
						}
					}
				}

			}
			.el-row.data_list_show_el_row_wrapper{
				background: white;
				margin-bottom: 0px;
				.data_list_show_card_wrapper{
					width: 100%;
					padding: 15px 5px;
					display: flex;
					flex-wrap: wrap;
					justify-content: center;
					align-items: center;
					gap: 20px;
					.card_item{
						width: 48.5%;
						border: 1px #dcdfe6 solid;
						padding-right: 15px;
						padding-top: 10px;
						.title_wrapper{
							width: 100%;
							display: flex;
							justify-content: space-between;
							align-items: center;
							margin-bottom: 18px;
							.title{
								font-weight: bold;
								font-size: 16px;
								//display: flex;
								//align-items: center;

								&::before{
									content: '';
									height: 13px;
									width: 3.9px;
									background: var(--el-color-primary);
									display: inline-block;
									margin-right: 10px;

								}
							}
							.detail_link{
								display: flex;justify-content: center;align-items: center;
								font-size: 13px;
								padding: 2px 15px 1px 15px;
								border: 1px #dcdfe6 solid;
								cursor: pointer;
							}

						}
						.info_wrapper{
							.chart_wrapper{
								width: 100%;
								height: 180px;
							}
						}
						.el-divider{
							margin: 10px 0;
							background: #f8f8f8;
						}
						.footer_wrapper{
							padding-left: 15px;
							padding-bottom: 10px;
							display: flex;
							justify-content: center;
							align-items: center;
							.el-image{
								width: 95%;
							}
						}

					}
				}
			}

		}
	}
	// 用于界面高度自适应，主视图区 main 的内边距，用于 iframe
	.layout-padding-unset {
		padding: 0 !important;
		&-view {
			border-radius: 0 !important;
			border: none !important;
		}
	}
	// 用于设置 iframe loading 时的高度（loading 垂直居中显示）
	.layout-iframe {
		height: 100%;
		.el-loading-parent--relative {
			height: 100%;
		}
	}
	.el-scrollbar {
		width: 100%;
	}
	.layout-el-aside-br-color {
		border-right: 1px solid var(--el-border-color-light, #ebeef5);
	}
	// pc端左侧导航样式
	.layout-aside-pc-220 {
		width: 220px !important;
		transition: width 0.3s ease;
	}
	.layout-aside-pc-250 {
		width: 250px !important;
		transition: width 0.3s ease;
	}
	.layout-aside-pc-64 {
		width: 64px !important;
		transition: width 0.3s ease;
	}
	.layout-aside-pc-1 {
		width: 1px !important;
		transition: width 0.3s ease;
	}
	// 手机端左侧导航样式
	.layout-aside-mobile {
		position: fixed;
		top: 0;
		left: -220px;
		width: 220px;
		z-index: 9999999;
	}
	.layout-aside-mobile-close {
		left: -220px;
		transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
	}
	.layout-aside-mobile-open {
		left: 0;
		transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
	}
	.layout-aside-mobile-mode {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 9999998;
		animation: error-img 0.3s;
	}
	.layout-mian-height-50 {
		height: calc(100vh - 50px);
	}
	.layout-columns-warp {
		flex: 1;
		display: flex;
		overflow: hidden;
	}
	.layout-hide {
		display: none;
	}
}

// 面包屑修改默认颜色和字体粗细
.layout-navbars-tagsview-ul {
	.is-active {
		font-weight: 900;
	}
}

/* element plus 全局样式
------------------------------- */
.layout-breadcrumb-seting {
	.el-divider {
		background-color: rgb(230, 230, 230);
	}
}

/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
	.bar {
		background: var(--el-color-primary) !important;
		z-index: 9999999 !important;
	}
}

/* flex 弹性布局
------------------------------- */
.flex {
	display: flex;
}
.flex-auto {
	flex: 1;
	overflow: hidden;
}
.flex-center {
	@extend .flex;
	flex-direction: column !important;
	width: 100%;
	overflow: hidden;
}
.flex-margin {
	margin: auto;
}
.flex-warp {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	margin: 0 -5px;
	.flex-warp-item {
		padding: 5px;
		.flex-warp-item-box {
			width: 100%;
			height: 100%;
		}
	}
}

/* cursor 鼠标形状
------------------------------- */
// 默认
.cursor-default {
	cursor: default !important;
}
// 帮助
.cursor-help {
	cursor: help !important;
}
// 手指
.cursor-pointer {
	cursor: pointer !important;
}
// 移动
.cursor-move {
	cursor: move !important;
}

/* 宽高 100%
------------------------------- */
.w100 {
	width: 100% !important;
}
.h100 {
	height: 100% !important;
}
.vh100 {
	height: 100vh !important;
}
.max100vh {
	max-height: 100vh !important;
}
.min100vh {
	min-height: 100vh !important;
}

/* 颜色值
------------------------------- */
.color-primary {
	color: var(--el-color-primary);
}
.color-success {
	color: var(--el-color-success);
}
.color-warning {
	color: var(--el-color-warning);
}
.color-danger {
	color: var(--el-color-danger);
}
.color-info {
	color: var(--el-color-info);
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
	.font#{$i} {
		font-size: #{$i}px !important;
	}
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 1 through 35 {
	.mt#{$i} {
		margin-top: #{$i}px !important;
	}
	.mr#{$i} {
		margin-right: #{$i}px !important;
	}
	.mb#{$i} {
		margin-bottom: #{$i}px !important;
	}
	.ml#{$i} {
		margin-left: #{$i}px !important;
	}
	.pt#{$i} {
		padding-top: #{$i}px !important;
	}
	.pr#{$i} {
		padding-right: #{$i}px !important;
	}
	.pb#{$i} {
		padding-bottom: #{$i}px !important;
	}
	.pl#{$i} {
		padding-left: #{$i}px !important;
	}
}
